package com.freesky.web.manager.controller;

import com.freesky.common.dao.entity.SystemInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: 陈玉林
 * @modifiedBy:
 * @date: Create In 17:16 2019-01-09
 * @description:
 */
@Controller
@Api(description = "主页面")
public class IndexController {
    @GetMapping("/")
    @ApiOperation(value = "进入页面-主页")
    public String showIndex(Model model){
        SystemInfo systemInfo = new SystemInfo().selectAll().get(0);
        model.addAttribute("systemInfo", systemInfo);
        return "index";
    }
    @ApiOperation(value = "进入页面-锁屏")
    @GetMapping("/lock-screen")
    public String lockScreen(){
        return "lock-screen";
    }
}
